package service;

import vo.OrderState;

import java.util.List;

public interface IOrderStateService {
    void updateOrderState(int id, String state);
    List<OrderState> getAllOrderState();
    void addOrderState(int orderId);

    /*
    * @description:当客户为订单付款时，把订单状态转为已付款
    * @param [orderId]
    * @return void
    */
    void updateOrderStateByOrderId(int orderId,String orderState);

    OrderState selectOrderStateByOrderId(int orderId);
}
